import request from '../utils/request'
import { loginType } from '../interface'

//登录
export const apiLogin = (data: loginType) => {
    return request({
        url: '/login',
        method: 'post',
        data
    })
}

//用户信息
export const apiUserInfo = () => {
    return request({
        url: '/getUserInfo'
    })
}

//注册
export const apiSigin = (data: any) => {
    return request({
        url: '/sigin',
        method: 'post',
        data
    })
}